using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
namespace Bussiness.Entity
{
                

     public class PT_CustomerEntity:AF_ORM.CORE.BaseEntity
    {
         public PT_CustomerEntity()
         {
             tableName = "PT_Customer";


			 fieldInfos.Add(new FieldInfo("PT_Customer","Address","Address","string",1024,false,true,true,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_Customer","AddressNumber","AddressNumber","string",50,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_Customer","CellPhone","CellPhone","string",20,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_Customer","CreatedBy","CreatedBy","string",50,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_Customer","CreatedDate","CreatedDate","DateTime",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_Customer","CustName","CustName","string",100,false,true,true,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_Customer","DistCode","DistCode","int",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_Customer","IsDeleted","IsDeleted","bool",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_Customer","MachineCode","MachineCode","string",1024,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_Customer","Model","Model","string",20,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_Customer","NumberPlate","NumberPlate","string",20,true,false,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_Customer","Phone","Phone","string",20,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_Customer","ProvinceCode","ProvinceCode","int",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_Customer","SBH","SBH","string",20,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_Customer","TotalKms","TotalKms","double",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_Customer","UpdatedBy","UpdatedBy","string",50,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_Customer","UpdatedDate","UpdatedDate","DateTime",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_Customer","Ward","Ward","string",200,false,true,true,false,"","",""));
         }
       //properties
                    
		 protected string m_Address;
		 protected string m_AddressNumber;
		 protected string m_CellPhone;
		 protected string m_CreatedBy;
		 protected DateTime m_CreatedDate;
		 protected string m_CustName;
		 protected int m_DistCode;
		 protected bool m_IsDeleted;
		 protected string m_MachineCode;
		 protected string m_Model;
		 protected string m_NumberPlate;
		 protected string m_Phone;
		 protected int m_ProvinceCode;
		 protected string m_SBH;
		 protected double m_TotalKms;
		 protected string m_UpdatedBy;
		 protected DateTime m_UpdatedDate;
		 protected string m_Ward;

		 public string Address

          { 
                get { 
                    return m_Address;}

                set{m_Address=value;

                    GetField("Address").Set();
                    GetField("Address").IsNull=(value == null);           
                    }
          }
		 public string AddressNumber

          { 
                get { 
                    return m_AddressNumber;}

                set{m_AddressNumber=value;

                    GetField("AddressNumber").Set();
                    GetField("AddressNumber").IsNull=(value == null);           
                    }
          }
		 public string CellPhone

          { 
                get { 
                    return m_CellPhone;}

                set{m_CellPhone=value;

                    GetField("CellPhone").Set();
                    GetField("CellPhone").IsNull=(value == null);           
                    }
          }
		 public string CreatedBy

          { 
                get { 
                    return m_CreatedBy;}

                set{m_CreatedBy=value;

                    GetField("CreatedBy").Set();
                    GetField("CreatedBy").IsNull=(value == null);           
                    }
          }
		 public DateTime CreatedDate

          { 
                get { 
                    return m_CreatedDate;}

                set{m_CreatedDate=value;

                    GetField("CreatedDate").Set();
                    GetField("CreatedDate").IsNull=(value == null);           
                    }
          }
		 public string CustName

          { 
                get { 
                    return m_CustName;}

                set{m_CustName=value;

                    GetField("CustName").Set();
                    GetField("CustName").IsNull=(value == null);           
                    }
          }
		 public int DistCode

          { 
                get { 
                    return m_DistCode;}

                set{m_DistCode=value;

                    GetField("DistCode").Set();
                    GetField("DistCode").IsNull=(value == null);           
                    }
          }
		 public bool IsDeleted

          { 
                get { 
                    return m_IsDeleted;}

                set{m_IsDeleted=value;

                    GetField("IsDeleted").Set();
                    GetField("IsDeleted").IsNull=(value == null);           
                    }
          }
		 public string MachineCode

          { 
                get { 
                    return m_MachineCode;}

                set{m_MachineCode=value;

                    GetField("MachineCode").Set();
                    GetField("MachineCode").IsNull=(value == null);           
                    }
          }
		 public string Model

          { 
                get { 
                    return m_Model;}

                set{m_Model=value;

                    GetField("Model").Set();
                    GetField("Model").IsNull=(value == null);           
                    }
          }
		 public string NumberPlate

          { 
                get { 
                    return m_NumberPlate;}

                set{m_NumberPlate=value;

                    GetField("NumberPlate").Set();
                    GetField("NumberPlate").IsNull=(value == null);           
                    }
          }
		 public string Phone

          { 
                get { 
                    return m_Phone;}

                set{m_Phone=value;

                    GetField("Phone").Set();
                    GetField("Phone").IsNull=(value == null);           
                    }
          }
		 public int ProvinceCode

          { 
                get { 
                    return m_ProvinceCode;}

                set{m_ProvinceCode=value;

                    GetField("ProvinceCode").Set();
                    GetField("ProvinceCode").IsNull=(value == null);           
                    }
          }
		 public string SBH

          { 
                get { 
                    return m_SBH;}

                set{m_SBH=value;

                    GetField("SBH").Set();
                    GetField("SBH").IsNull=(value == null);           
                    }
          }
		 public double TotalKms

          { 
                get { 
                    return m_TotalKms;}

                set{m_TotalKms=value;

                    GetField("TotalKms").Set();
                    GetField("TotalKms").IsNull=(value == null);           
                    }
          }
		 public string UpdatedBy

          { 
                get { 
                    return m_UpdatedBy;}

                set{m_UpdatedBy=value;

                    GetField("UpdatedBy").Set();
                    GetField("UpdatedBy").IsNull=(value == null);           
                    }
          }
		 public DateTime UpdatedDate

          { 
                get { 
                    return m_UpdatedDate;}

                set{m_UpdatedDate=value;

                    GetField("UpdatedDate").Set();
                    GetField("UpdatedDate").IsNull=(value == null);           
                    }
          }
		 public string Ward

          { 
                get { 
                    return m_Ward;}

                set{m_Ward=value;

                    GetField("Ward").Set();
                    GetField("Ward").IsNull=(value == null);           
                    }
          }

}
}
